package org.lendoo.web.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 购物车，包括商品名称、单价、总价和图片url
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "CartWithGoodsAndImageDto", description = "购物车，包括商品名称、单价、总价和图片url")
public class CartWithGoodsAndImageDto {

    @ApiModelProperty(value = "购物车id", dataType = "Integer")
    private Integer id;

    @ApiModelProperty(value = "商品id", dataType = "Integer")
    private Integer goodsId;

    @ApiModelProperty(value = "图片url", dataType = "String")
    private String imageUrl;

    @ApiModelProperty(value = "商品标题", dataType = "String")
    private String goodsTitle;

    @ApiModelProperty(value = "商品单价", dataType = "Double")
    private Double goodsPrice;

    @ApiModelProperty(value = "商品数量", dataType = "Integer")
    private Integer quantity;

    @ApiModelProperty(value = "实付金额", dataType = "Double")
    private Double realPurchaseMoney;

    @ApiModelProperty(value = "是否被选中", dataType = "Boolean")
    private Boolean selected;
}
